package net.yxsoft.model.formdesigner.base;

import com.jfinal.plugin.activerecord.IBean;
import net.yxsoft.model.infrastructure.base.BaseModel;

import java.math.BigDecimal;

public class BaseFormField<M extends BaseFormField<M>> extends BaseModel<M> implements IBean {

  public void setId(String value) {
    set("id", value);
  }

  public String getId() {
    return get("id");
  }

  public void setFormId(String value) {
    set("form_id", value);
  }

  public String getFormId() {
    return get("form_id");
  }

  public void setTitle(String value) {
    set("title", value);
  }

  public String getTitle() {
    return get("title");
  }

  public void setName(String value) {
    set("name", value);
  }

  public String getName() {
    return getStr("name");
  }

  public void setType(String value) {
    set("type", value);
  }

  public String getType() {
    return getStr("type");
  }

  public void setDataSourceId(String value) {
    set("datasource_id", value);
  }

  public String getDataSourceId() {
    return getStr("datasource_id");
  }

  public void setFileSize(Integer value) {
    set("file_size", value);
  }

  public Integer getFileSize() {
    return getInt("file_size");
  }

  public void setFileMaxSize(Integer value) {
    set("file_max_size", value);
  }

  public Integer getFileMaxSize() {
    return getInt("file_max_size");
  }

  public void setRequired(Integer value) {
    set("required", value);
  }

  public Integer getRequired() {
    return getInt("required");
  }


  public void setState(Integer value) {
    set("state", value);
  }

  public Integer getState() {
    return getInt("state");
  }

  public void setSort(BigDecimal value) {
    set("sort", value);
  }

  public BigDecimal getSort() {
    return getBigDecimal("sort");
  }

  public void setNote(String value) {
    set("note", value);
  }

  public String getNote() {
    return getStr("note");
  }

  public void setCreated(java.util.Date value) {
    set("created", value);
  }

  public java.util.Date getCreated() {
    return get("created");
  }

  public void setNumberMaxValue(Long numberMaxValue) {
    set("number_max_value", numberMaxValue);
  }

  public Long getNumberMaxValue() {
    return getLong("number_max_value");
  }

  public void setNumberMinValue(Long numberMinValue) {
    set("number_min_value", numberMinValue);
  }

  public Long getNumberMinValue() {
    return getLong("number_min_value");
  }

  public void setStringMaxLength(Long stringMaxLength) {
    set("string_max_length", stringMaxLength);
  }

  public Long getStringMaxLength() {
    return getLong("string_max_length");
  }

  public void setGirdFieldWidth(Long girdFieldWidth) {
    set("gird_field_width", girdFieldWidth);
  }

  public Long getGirdFieldWidth() {
    return getLong("gird_field_width");
  }

  public void setCodeResource(String codeResource) {
    set("code_resource", codeResource);
  }

  public String getCodeResource() {
    return getStr("code_resource");
  }

  public void setCodeLeaf(String codeLeaf) {
    set("code_leaf", codeLeaf);
  }

  public String getCodeLeaf() {
    return getStr("code_leaf");
  }

  public void setCodeType(String codeType) {
    set("code_type", codeType);
  }

  public String getCodeType() {
    return getStr("code_type");
  }

  public void setCodeName(String codeName) {
    set("code_name", codeName);
  }

  public String getCodeName() {
    return getStr("code_name");
  }

  public void setField(String field) {
    set("field", field);
  }

  public String getField() {
    return getStr("field");
  }

  public void setControllerId(String controllerId) {
    set("controller_id", controllerId);
  }

  public String getControllerId() {
    return getStr("controller_id");
  }

  public void setGridFieldVisible(Integer gridFieldVisible) {
    set("grid_field_visible", gridFieldVisible);
  }

  public Integer getGridFieldVisible() {
    return getInt("grid_field_visible");
  }

  public void setIsSearch(String isSearch) {
    set("is_search", isSearch);
  }

  public String getIsSearch() {
    return getStr("is_search");
  }

  public void setColSpan(Integer colspan) {
    set("col_span", colspan);
  }

  public Integer getColSpan() {
    return getInt("col_span");
  }

  public void setGridShowName(String gridshowname) {
    set("grid_show_name", gridshowname);
  }

  public String getGridShowName() {
    return getStr("grid_show_name");
  }

  public void setDefaultValue(String defaultValue) {
    set("default_value", defaultValue);
  }

  public String getDefaultValue() {
    return getStr("default_value");
  }

  public void setCustomDataUrl(String customDataUrl) {
    set("custom_data_url", customDataUrl);
  }

  public String getCustomDataUrl() {
    return getStr("custom_data_url");
  }

  public void setCustomDataOption(String customDataOption) {
    set("custom_data_option", customDataOption);
  }

  public String getCustomDataOption() {
    return getStr("custom_data_option");
  }

  public void setDataOnly(String dataOnly) {
    set("data_only", dataOnly);
  }

  public String getDataOnly() {
    return getStr("data_only");
  }

  public void setIsSum(String isSum){
    set("is_sum", isSum);
  }

  public String getIsSum(){
    return getStr("is_sum");
  }

  public void setIsTypeSum(String isTypeSum){
    set("is_typesum", isTypeSum);
  }

  public String getIsTypeSum(){
    return getStr("is_typesum");
  }

  public void setIsExport(String isExport){
    set("is_export", isExport);
  }

  public String getIsExport(){
    return getStr("is_export");
  }

  public void setIsCascade(String isCascade){
    set("is_cascade", isCascade);
  }

  public String getIsCascade(){
    return getStr("is_cascade");
  }

  public void setCascadeField(String cascadeField){
    set("cascade_field", cascadeField);
  }

  public String getCascadeField(){
    return getStr("cascade_field");
  }

  public void setValidatorType(String validatorType){
    set("validator_type", validatorType);
  }

  public String getValidatorType(){
    return getStr("validator_type");
  }

  public void setIsAutocode(String isAutocode){
    set("is_autocode", isAutocode);
  }

  public String getIsAutocode(){
    return getStr("is_autocode");
  }

  public void setPrefix1(String prefix1){
    set("prefix1", prefix1);
  }

  public String getPrefix1(){
    return getStr("Prefix1");
  }

  public void setPrefix2(String prefix2){
    set("prefix2", prefix2);
  }

  public String getPrefix2(){
    return getStr("Prefix2");
  }

  public void setPrefix3(String prefix3){
    set("prefix3", prefix3);
  }

  public String getPrefix3(){
    return getStr("Prefix3");
  }

  public void setSerialNumber(String serialNumber){
    set("serial_number", serialNumber);
  }

  public String getSerialNumber(){
    return getStr("serial_number");
  }

  public void setSeparator(String separator){
    set("separator", separator);
  }

  public String getSeparator(){
    return getStr("separator");
  }


  public void setIsSort(String isSort){
    set("is_sort", isSort);
  }

  public String getIsSort(){
    return getStr("is_sort");
  }

  public void setIsEditor(String isEditor){
    set("is_editor", isEditor);
  }

  public String getIsEditor(){
    return getStr("is_editor");
  }
}
